package com.mkvld.appietijdenv2.activities;

import com.mkvld.appietijdenv2.R;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public abstract class ActStartV9 extends ActV9 {
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.act_start);
		
		findViewById(R.id.as_shifts).setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				startActivity(getShiftsIntent());
			}
		});
		
		findViewById(R.id.as_payroll).setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				startActivity(getPayrollIntent());
			}
		});
		
		findViewById(R.id.as_breaks).setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				startActivity(getBreaksIntent());
			}
		});
		
		findViewById(R.id.as_extras).setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				startActivity(getExtrasIntent());
			}
		});
		
		findViewById(R.id.as_info).setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				startActivity(getInfoIntent());
			}
		});
		
		findViewById(R.id.as_settings).setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				startActivity(getSettingsIntent());
			}
		});
	}
	
	public abstract Intent getShiftsIntent();
	public abstract Intent getPayrollIntent();
	public abstract Intent getBreaksIntent();
	public abstract Intent getExtrasIntent();
	public abstract Intent getInfoIntent();
	public abstract Intent getSettingsIntent();
}
